package com.ys.web.app.mapper;

import com.ys.base.BaseMapper;
import com.ys.web.app.model.BaseTerminalPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @ 名称:
 * @ 创建人: dhf
 * @ 参数： null
 * @ 创建时间: 2022/5/10
 * @ 修改人和其它信息
 * @ 返回值:
 */
@Mapper
public interface TerminalMapper extends BaseMapper<BaseTerminalPO> {

    @Select("select * from terminal_info where terminal = #{terminal} order by create_time desc limit 1")
    BaseTerminalPO getCurrentVersion(@Param("terminal") String terminal);

}
